package com.launcher.wkang.activity;

import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.widget.ImageView;

import com.launcher.wkang.App;
import com.launcher.wkang.R;
import com.launcher.wkang.util.PhoneUtil;
import com.launcher.wkang.util.QRCodeUtil;

public class ShowQcCodeActivity extends Activity {
    private ImageView showQcImage;
    @RequiresApi(api = Build.VERSION_CODES.O)
    @Override
    protected void onCreate( Bundle savedInstanceState) {
        App.getINstance().setsetWaveformMode(5,1);
        super.onCreate(savedInstanceState);
        App.getINstance().setsetWaveformMode(5,1);
        setContentView(R.layout.activity_show_qr_code);
        showQcImage=findViewById(R.id.show_qc_image);
        String deviceId= PhoneUtil.getDeviceId(this);
        Bitmap bitmap= PhoneUtil.createQRCodeBitmap(deviceId,500,500);
        showQcImage.setImageBitmap(bitmap);

    }
}
